<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // let arr = [2, 0, 6, 1, 77, 0, 52, 0, 25, 7]
        // let newArr = [] 
        // for (i = 0; i < arr.length; i++) {
        //     if (arr[i] >= 10) {
        //         newArr.push(arr[i])
        //     }
        // }
        // console.log(newArr)

        // let arr = [2, 0, 6, 1, 77, 0, 52, 0, 25, 7]
        // let newArr = []
        // for (i = 0; i < arr.length; i++) {
        //     if (arr[i] > 0 || arr[i] < 0) {
        //         newArr.push(arr[i])
        //     }
        // }
        // console.log(newArr)

        // let arr = [1, 2, 3, 4, 5, 6]
        // arr.push = (11)
        // arr.unshift(23)
        // arr.pop()
        // arr/shift()
        // arr.splice(1, 2)


        // console.log(arr);

        obj = ['赵云', '黄忠', '关羽', '张飞', '马超', '刘备', '曹操']
        let i = Math.floor(Math.random() * obj.length)
        document.write(obj[i])



    </script>
</body>

</html>